package com.gao.xml.jaxb.xml;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * @author GaoXi
 * @date 2021/8/18 10:54
 */
@Data
@XmlAccessorType(XmlAccessType.NONE)
public class StudentInfo {

    @XmlAttribute(name = "size")
    private String size;

    @XmlElementWrapper(name = "stuInfo")
    @XmlElement(name = "stu")
    private List<Student> studentList;


    public StudentInfo() {
    }

    public StudentInfo(String size, List<Student> studentList) {
        this.size = size;
        this.studentList = studentList;
    }
}
